Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't clear lock link database during analysis. #1712

Merged
merged 2 commits into from
Apr 8, 2022

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Apr 8, 2022

When we clear the database and a resolve back-tracks, we lose the
additional artifact urls needed to fill in the backtracked requirement
lock encountered later in the resolve.

Previously the clearing was done to relieve memory pressure during the
analysis but measurements show even moderately large resolves collect
only a handful of MBs worth of link data. We could collect 100x more
links in a very large resolve and still be OK here on all but the most
constrained machines. As such, we simply stop clearing the crawled link
database during analysis.

Fixes #1711

When we clear the database and a resolve back-tracks, we lose the
additional artifact urls needed to fill in the backtracked requirement
lock encountered later in the resolve.

Previously the clearing was done to relieve memory pressure during the
analysis but measurements show even moderately large resolves collect
only a handful of MBs worth of link data. We could collect 100x more
links in a very large resolve and still be OK here on all but the most
constrained machines. As such, we simply stop clearing the crawled link
database during analysis.

Fixes pex-tool#1711
No clue why this works under Python 2.
@jsirois jsirois merged commit 04f93a4 into pex-tool:main Apr 8, 2022
@jsirois jsirois deleted the issues/1711 branch April 8, 2022 02:43
@jsirois jsirois mentioned this pull request Apr 8, 2022
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Universal lockfile contains the wrong dists
3 participants